//
//  PayCostViewController.m
//  PeopleStreet
//
//  Created by 辰领科技 on 16/7/8.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "PayCostViewController.h"

@interface PayCostViewController ()
@property (strong, nonatomic) IBOutlet UIView *navView;
@property (strong, nonatomic) IBOutlet UIScrollView *scroview;
@property (strong, nonatomic) IBOutlet UILabel *LicensePlateNumberLabel;//车牌号
@property (strong, nonatomic) IBOutlet UILabel *timeLabel;//停车时间
@property (strong, nonatomic) IBOutlet UILabel *moneyLabel;//费用
@property (strong, nonatomic) IBOutlet UIButton *payButtonOne;
@property (strong, nonatomic) IBOutlet UIButton *payButtonTwo;
@property (strong, nonatomic) IBOutlet UIButton *payButtonThree;
@property (strong, nonatomic) IBOutlet UIButton *confirmButton;

@end

@implementation PayCostViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initViewLayout];
}


- (void)initViewLayout{
    
    [self adaptiveViewLayout:self.view];
    self.view.backgroundColor = [UIColor colorWithWhite:0.957 alpha:1.000];
    [self adaptiveViewLayout:self.navView];
    [self adaptiveViewLayout:self.scroview];
    self.scroview.contentSize = flexibleSize(CGSizeMake(0, 505),NO);
    self.confirmButton.layer.cornerRadius = 20*VerticalRatio();
    
    
    
 
    
}
- (IBAction)back:(id)sender {
    [self.navigationController  popViewControllerAnimated:YES];
}

#pragma mark - 选择支付方式
- (IBAction)pay:(UIButton *)sender {
    if (sender.tag == 100) {
        _payButtonOne.selected = YES;
        _payButtonTwo.selected = NO;
        _payButtonThree.selected = NO;
    } else if (sender.tag == 101) {
        _payButtonOne.selected = NO;
        _payButtonTwo.selected = YES;
        _payButtonThree.selected = NO;
    } else if (sender.tag == 102) {
        _payButtonOne.selected = NO;
        _payButtonTwo.selected = NO;
        _payButtonThree.selected = YES;
    }

}


@end
